import request from '../utils/request'

// 获取登录二维码token
export function getLoginToken() {
  return request({
    url: '/portal/company/getQRToken',
    method: 'get'
  })
}

/**
 * 轮训确认二维码是否被扫描
 */
export function checkCodeScanApi(qrToken) {
  return request({
    url: `/portal/company/checkCodeScan?qrToken=${qrToken}`,
    method: 'get'
  })
}


/**
 * 轮训查看手机端是否确认登录
 */
export function checkPhoneLoginApi(qrToken) {
  return request({
    url: `/portal/company/checkUserLogin?qrToken=${qrToken}`,
    method: 'get'
  })
}